package org.maitaole.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.List;

public class TbBrand {
    @TableId(type = IdType.AUTO)
    private Integer brandId;

    private String brandName;

    private List<TbGood> goodList;

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public List<TbGood> getGoodList() {
        return goodList;
    }

    public void setGoodList(List<TbGood> goodList) {
        this.goodList = goodList;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", brandId=").append(brandId);
        sb.append(", brandName=").append(brandName);
        sb.append("]");
        return sb.toString();
    }
}